package runner.ui;

import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: AVK
 * Date: 03.11.13
 * Time: 17:56
 * To change this template use File | Settings | File Templates.
 */
public class Window extends JFrame {
    public Window(DefaultMutableTreeNode root) {
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setSize(500, 500);
        this.setLocationRelativeTo(null);

        this.setLayout(new BorderLayout());


        Tree tree = new Tree(root);
        this.add(tree,BorderLayout.WEST);



        this.setVisible(true);
        //tree.requestFocus();
        tree.repaint();
    }
}
